package cool.tianyou.blue.bird.common.model.entity;

import cool.tianyou.blue.bird.common.model.po.Device;
import cool.tianyou.blue.bird.common.model.po.User;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * LoginUserInfo
 * 登录用户的信息
 *
 * @author likeguo
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LoginUserInfo {
    /**
     * 登录用户的信息
     */
    private User baseInfo;
    /**
     * 登录的设备
     */
    private List<Device> equipments;

    /**
     * 注册监听的设备<br>
     * ps：同步的消息将推送到这些设备
     */
    private List<Device> listenerEquipments;

    public LoginUserInfo(User baseInfo) {
        this.baseInfo = baseInfo;
    }
}
